import {Http} from "../utils/http"
import {User} from "./user"

class Rank {
    static async getAnswerRank() {
        const user = new User()
        return await Http.request({
            url: '/ranks/answer',
            data: {
                user_id: user.user.id
            }
        })
    }

    static async getStudyRank() {
        const user = new User()
        return await Http.request({
            url: '/ranks/study',
            data: {
                user_id: user.user.id
            }
        })
    }
}
export {
    Rank
}
